package pl.javarsovia.javarsovia4android.domain;

import java.io.Serializable;

/**
 * @author mgrzechocinski
 * @since 2010-06-12
 */
@SuppressWarnings("serial")
public class Lecture implements Serializable {

	private String id;
	private String title;

	private String description;
	private Speaker speaker;
	private Slot slot;
	private Room room;

	public Lecture(String id, String title, String description) {
		this.id = id;
		this.description = description;
		this.title = title;
	}

	public Lecture(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public String getDescription() {
		return description;
	}

	public String getTitle() {
		return title;
	}

	public Speaker getSpeaker() {
		return speaker;
	}

	public Lecture speaker(Speaker speaker) {
		this.speaker = speaker;
		return this;
	}

	public Slot getSlot() {
		return slot;
	}

	public Lecture title(String title) {
		this.title = title;
		return this;
	}

	public Lecture description(String desc) {
		this.description = desc;
		return this;
	}

	public Lecture slot(Slot slot) {
		this.slot = slot;
		if (slot != null)
			slot.addLecture(this);
		return this;
	}

	public Room getRoom() {
		return room;
	}

	public Lecture room(Room room) {
		this.room = room;
		if (room != null)
			room.addLecture(this);
		return this;
	}

}
